<?php

/* *
 * 资讯
 */
namespace Common\Model;
use Think\Model;
class FormDictModel extends BaseModel {

    public function queryForList($map=null) {
//        $map['class_name'] = $userId;
        $fd = $this->alias("fd")
            ->where($map)
            ->order("fd.order asc")
            ->field("fd.*")
            ->select();

        foreach($fd as $value){
            $list[$value["index"]] = $value["name"];
        }
        return $list;
    }

}

